Repository navigation
test(claimant): pin prompt.md constants to claimant.py/poll.py by sync check (#8366) - #11219
Conversation
…c check (#8366) Route (b) from the issue, per the triage recommendation: prompt.md is hand-tuned prose, so instead of generating it, test_prompt_constants.py fails when any machine-checkable restatement drifts from the code — the drift the #7772 audit repaired by hand (stale queue-CLI path vs REPO_QUEUE_CMD). Pinned: the four queue names, REPO_QUEUE_CMD path, the 36 concurrency cap (both statements), the OpenCode server URL, both launched-by recovery markers, the 30-min activity window and 2-h zombie threshold, mode/fire-log paths, the worker name, route defaults, held-issue labels, and the primary clone — plus claimant/poll cross-module equality for the shared constants. The test docstring carries the full inventory with exemptions and reasons (provider-wall marker, credential-adjacent paths, poll-internal tuning). Wired into run_hermetic_tests.py; test_harness_safety fixture stubs the new module like the existing suites. Deliberate mismatch verified: CONCURRENCY_CAP 36->37 in claimant.py only makes the check fail; reverting restores green. Suites: hermetic 154 OK, test_harness_safety OK, test_claimant/test_poll/test_claimant_args/test_launch_one/test_dispatch_batch/test_send_to_opencode all OK.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Closes #8366 via route (b), pin-by-check — the triage recommendation recorded on the issue: prompt.md is hand-tuned prose, so rather than generating it, a new test fails the moment any machine-checkable restatement drifts from claimant.py/poll.py. That is the drift the #7772 Phase 4 audit had to repair by hand (prompt.md's queue-CLI path stale in two places against REPO_QUEUE_CMD).
What changed
test_prompt_constants.py(new, 11 tests): pins the four queue names, the REPO_QUEUE_CMD path, the 36 concurrency cap (both prompt statements), the OpenCode server URL, both launched-by recovery markers, the 30-minute activity window and 2-hour zombie threshold, the mode-file and fire-log paths, the worker name, the route defaults, the held-issue labels, and the primary clone — and pins claimant.py vs poll.py equality for the shared constants, so code-side drift between the two modules is caught too. Its docstring is the required inventory: every machine-checkable restatement in prompt.md is either pinned or explicitly exempted with a reason (the provider-wall recovery marker, credential-adjacent paths, poll-internal tuning constants).run_hermetic_tests.py: the new suite is wired into the hermetic runner.test_harness_safety.py: the black-box fixture stubs the new module exactly like the existing suites (found by running it — the fixture's fixed file list initially missed the new module).Verification
Task 20130, lane any-l.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.